#!/bin/bash

if [ "$1" == "--debug" ] || [ "$1" == "-d" ]; then
    docker run -it --name resUpload \
        --network allinpay \
        -p 8000:8000 \
        -v /opt/resUpload:/opt \
        --privileged=true \
        --restart=always \
        python:3.10 bash
else
    docker run -it --name resUpload \
        --network allinpay \
        -v /opt/resUpload:/opt \
        --privileged=true \
        --restart=always \
        python:3.10 bash /opt/iClouds/run-bash.sh           
fi
